package com.mesSystem.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("workstation")
public class Workstation {
    public Workstation(Long workstationId, String workstationName) {
        this.workstationId = workstationId;
        this.name = workstationName;
    }

    @TableId(value = "workstation_id", type = IdType.AUTO)
    /**
     * 工位id
     */
    private Long workstationId;
    /**
     * 工位名称（唯一！）
     */
    private String name;
    /**
     * 工位类型
     */
    private String type;
    /**
     * 工位状态
     */
    private String status;
    /**
     * 工位创建日期
     */
    private Date increaseDate;
    /**
     * 工位描述
     */
    private String description;
}
